package practice;

public class Pra_03 {
    public int[] generate(int n, int bound) {
        int[] arr = new int[n];
        for (int i = 0; i < n; i++)
            arr[i] = (int) (Math.random() * (bound + 1));
        return arr;
    }

    public static void main(String[] args) {
        Pra_03 p6 = new Pra_03();
        int[] arr = p6.generate(20, 10);
        for (int a : arr)
            System.out.println(a);
//		float x = 2.5f;
//		double y = 4.22;
//		int a=7;
//		System.out.print(x+a%3*(int)x%(int)y);
    }
}
